package com.lxk.quartz;

import com.lxk.service.PlayService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author JohnSoybean
 * @create 2020-07-16 21:34
 * @description 扫码排队过期 监听任务
 */
@EnableScheduling
public class QueueExpireJob implements Job {

    @Autowired
    private PlayService playService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) {
        try {
            playService.scheduleQueueExpire();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
